﻿using System;

namespace Program13__3_16作业
{
    public struct MyColor
    {
         public  int red ;
         public  int green;
         public  int blue;
    }
    //2.
    public enum Gender
    {
        男,
        女
    }
    public struct Person
    {
        public string Name;  
        public Gender gender;
        public int Age;
    }
    class Program
    {
        static void Main(string[] args)
        {

            MyColor myC = new MyColor();
            myC.red  = 1;
            myC.green  = 2;
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("我的颜色是{0}红色！",myC.red );
            Console.ForegroundColor = ConsoleColor.Green ;
            Console.WriteLine("我的颜色是{0}绿色！", myC.green );


            //Person peson1;
            //peson1.Name = "张3";
            //peson1.gender = Gender.男;
            //peson1.Age = 18;

            //Person peson2;
            //peson2.Name = "小兰";
            //peson2.gender = Gender.女;
            //peson2.Age = 16;

            //Console.WriteLine("姓名：{0} 性别：{1} 年龄：{2}", peson1.Name, peson1.gender, peson1.Age);
            //Console.WriteLine("姓名：{0} 性别：{1} 年龄：{2}", peson2.Name, peson2.gender, peson2.Age);

        }
    }
}
